import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
  const token = ref<string>('')

  function login(t: string) {
    token.value = t
  }

  return { token, login }
})